<?php

/**
 * Define constantes de ambiente para o funcionamento correto do framework
 */
define("DS", DIRECTORY_SEPARATOR);
define("PS", PATH_SEPARATOR);
$core_path = dirname(__FILE__) . DS;

define("DIR_ENGINE", 	$core_path 	. DIR_APLICATIVO . DS . 'engine' 	. DS);
define("DIR_MODELO", 	$core_path 	. DIR_APLICATIVO . DS . 'modelos' 	. DS);
define("DIR_CONTROLS", 	$core_path 	. DIR_APLICATIVO . DS . 'controls'  . DS);
define("DIR_PLUGIN", 	$core_path 	. DIR_APLICATIVO . DS . 'plugin' 	. DS);
define("DIR_CONFIG", 	$core_path 	. DIR_APLICATIVO . DS . 'config'	. DS);

define("DIR_LIB", 	$core_path . 'lib' . DS);

define("DIR_COMUM", 				DIR_LIB . 'comum' 		. DS);
define("DIR_FRAMEWORK", 			DIR_LIB . 'core' 		. DS);
define("DIR_FRAMEWORK_INCLUDES", 	DIR_LIB . 'includes' 	. DS);

define("FRAMEWORK_CHARSET",  "utf-8");
define("FRAMEWORK_VERSION",  "1.0 beta");
define("FRAMEWORK_LANGUAGE", "pt_Br");

set_include_path(DIR_FRAMEWORK . PS . DIR_LIB . PS . DIR_FRAMEWORK_INCLUDES . PS . DIR_ENGINE . PS . DIR_MODELO . PS . DIR_CONTROLS . PS . DIR_PLUGIN . PS . DIR_COMUM . PS . get_include_path());

unset($core_path);